<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@include file="../header.jsp"%>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
	window.onload = function() {
		CKEDITOR.replace('topic.content');
	};
</script>

</head>
<%@include file="../menu.jsp"%>
<form method="post" action="topicAction!addTopic.action">
	<table>
		<tr>
			<td>帖子标题</td>
			<td><input name="topic.title" type="text"> <input
				type="hidden" name="topic.user_id"
				value="${sessionScope.UserSession.user.user_id}" />
			</td>
		</tr>
		<tr>
			<td>板块</td>
			<td><select name="topic.board_id" type="text">
					<option value="0">请选择</option>
					<s:iterator value="#application.sectionCache.keySet()" var="key">
						<option value="<s:property value='#key'/>">
							<s:property value="#application.sectionCache.get(#key).section_name" />
						</option>
					</s:iterator>
			</select></td>
		</tr>
		<tr>
			<td>文章内容</td>
			<td><textarea name="topic.content" class="jquery_ckeditor">
							
						</textarea>
			</td>
		</tr>
		<tr>
			<td><input type="submit" value="提交"></td>
			<td><input type="reset" value="重置"></td>
		</tr>
	</table>
</form>

<%@include file="../footer.jsp"%>